<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use Illuminate\Database\Eloquent\Model as Eloquent;

/**
 * Class Agent
 * 
 * @property int $id
 * @property int $hall_id
 * @property int $pid
 * @property int $type
 * @property int $level
 * @property string $agent_name
 * @property string $salt
 * @property string $password
 * @property string $google_auth_key
 * @property string $register_ip
 * @property string $code
 * @property string $link
 * @property string $remark
 * @property int $status
 * @property int $creator_id
 * @property int $auditor_id
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 *
 * @package App\Models
 */
class Agent extends Eloquent
{
	protected $table = 'agent';

	protected $casts = [
		'hall_id' => 'int',
		'pid' => 'int',
		'type' => 'int',
		'level' => 'int',
		'status' => 'int',
		'creator_id' => 'int',
		'auditor_id' => 'int'
	];

	protected $hidden = [
		'salt',
		'password',
		'google_auth_key'
	];

	protected $fillable = [
		'hall_id',
		'pid',
		'type',
		'level',
		'agent_name',
		'salt',
		'password',
		'google_auth_key',
		'register_ip',
		'code',
		'link',
		'remark',
		'status',
		'creator_id',
		'auditor_id'
	];
}
